package sbp.dao;

import java.util.List;
import org.hibernate.Session;
import sbp.modelos.Responsavel;

public class ResponsavelDAO extends DAO<Responsavel>{
	
	private Session session;
	
	public ResponsavelDAO(Session session) {
		super(session, Responsavel.class);
	}
	
	@SuppressWarnings("unchecked")
	public List<Responsavel> listar() {
		return this.session.createCriteria(Responsavel.class).list();
	}

	public void setSession(Session session) {
		this.session = session;
	}
}
